]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
unlockDialog: Stop passing timestamp to Main.pushModal()
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 16 Feb 2024 23:12:51 +0000 (00:12 +0100)
committerMarge Bot <marge-bot@gnome.org>
Sat, 17 Feb 2024 10:42:46 +0000 (10:42 +0000)
Since the move to Clutter.grab() in commit f4cae72d17af6, the
parameter doesn't do anything anymore.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3195>

js/ui/screenShield.js
js/ui/unlockDialog.js

index 7e428623e7602e4f0e7d6d91e9cdb0069d1b2211..d2236fb900022903f5b78249eb65881e8c9fac7d 100644 (file)
@@ -427,8 +427,7 @@ export class ScreenShield extends Signals.EventEmitter {
 
             this._dialog = new constructor(this._lockDialogGroup);
 
-            let time = global.get_current_time();
-            if (!this._dialog.open(time)) {
+            if (!this._dialog.open()) {
                 // This is kind of an impossible error: we're already modal
                 // by the time we reach this...
                 log('Could not open login dialog: failed to acquire grab');
index 8a40845de43bf9b54f2b00fc3837a07348e77585..29240a9413e3c6085fdd2c6516e4324979e23ddf 100644 (file)
@@ -876,17 +876,14 @@ export const UnlockDialog = GObject.registerClass({
         this._authPrompt.finish(onComplete);
     }
 
-    open(timestamp) {
+    open() {
         this.show();
 
         if (this._isModal)
             return true;
 
-        let modalParams = {
-            timestamp,
-            actionMode: Shell.ActionMode.UNLOCK_SCREEN,
-        };
-        let grab = Main.pushModal(Main.uiGroup, modalParams);
+        const grab = Main.pushModal(Main.uiGroup,
+            {actionMode: Shell.ActionMode.UNLOCK_SCREEN});
         if (grab.get_seat_state() !== Clutter.GrabState.ALL) {
             Main.popModal(grab);
             return false;
@@ -902,9 +899,9 @@ export const UnlockDialog = GObject.registerClass({
         this._showPrompt();
     }
 
-    popModal(timestamp) {
+    popModal() {
         if (this._isModal) {
-            Main.popModal(this._grab, timestamp);
+            Main.popModal(this._grab);
             this._grab = null;
             this._isModal = false;
         }